package com.qhit.service.impl;

import com.qhit.mapper.TouristMapper;
import com.qhit.pojo.Tourist;
import com.qhit.service.TouristService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

@Service
public class TouristServiceImpl implements TouristService {
    @Autowired
    private TouristMapper touristMapper;

    public List<Tourist> getList(HashMap hashMap) {
        return touristMapper.getList(hashMap);
    }

    public int getListCount(HashMap hashMap) {
        return touristMapper.getListCount(hashMap);
    }

    public int add(Tourist tourist) {
        return touristMapper.add(tourist);
    }

    public Tourist getTouristById(String id) {
        return touristMapper.getTouristById(id);
    }

    public int edit(Tourist g) {
        return touristMapper.edit(g);
    }

    public int del(String id) {
        return touristMapper.del(id);
    }
}
